<?php
/**
 * dao exception
 * @author bruce.li
 */
class Exception_Dao extends Exception
{
    /**
     * the dead sql
     *
     * @var str
     */
    private $_sql = null;


    /**
     * the bind array
     * @var mixed
     */
    private $_bind = null;


    /**
     * constructor
     *
     * @return void
     */
    public function __construct($sql = null, $bind = null, Exception $e = null)
    {
        $this->_sql  = $sql;
        $this->_bind = $bind;

        parent::__construct($e->getMessage(), $e->getCode());

    }// end __construct


    /**
     * get Bind
     *
     * @return mixed
     */
    public function getBind()
    {
        return $this->_bind;

    }// end getBind


    /**
     * get Sql
     *
     * @return str
     */
    public function getSql()
    {
        return $this->_sql;

    }// end getSql

}// end Exception_Dao
?>